/*
 * @Author: 徐军 
 * @Date: 2021-06-26 22:58:25 
 * @Last Modified by: 徐军
 * @Last Modified time: 2021-06-26 23:12:21
 */
let lastEvent;
['click', 'touchstart', 'mousedown', 'keydown', 'mouseover'].forEach(eventType=>{
    document.addEventListener(eventType,(event)=>{
        lastEvent = event;
    },{
        capture:true,//捕获阶段
        passive:true // 默认不阻止默认事件
    })
})

export default function(){
    return lastEvent
}